package cc.rengu.redp.system.utils;

import cc.rengu.redp.common.utils.SpringContextUtil;
import cc.rengu.redp.system.service.CommonDictService;

import java.util.List;
import java.util.Map;

/**
 * 系统数据字典工具类
 *
 * @author xushitang
 */
public class DictUtil {

    private final static CommonDictService commonDictService = SpringContextUtil.getBean(CommonDictService.class);

    private DictUtil(){}

    public static List<String> getAllFields() {
        return commonDictService.getAllFields();
    }

    public static Map<String, String> getField(String fieldName) {
        return commonDictService.getField(fieldName);
    }
}
